package com.yty.order.controller;


import com.alibaba.fastjson.JSONObject;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author
 * @since 2022-06-24
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @GetMapping("queryByOrderId")
    public String queryByOrderId(String orderId) {
        return "你已经进入order服务，参数为："+orderId;
    }

    @PostMapping("list")
    public Object list(@RequestBody JSONObject paramJson) {
        String jsonString = JSONObject.toJSONString(paramJson);
        return "post请求，传递参数为：" + jsonString;
    }
}
